package com.nt.thah.service;

import com.alibaba.fastjson.JSONObject;
import com.nt.thah.entity.CarbonAccount;
import com.nt.thah.entity.ScoreAccount;
import com.nt.thah.entity.User;

import java.util.List;
import java.util.Map;

/**
* @Description: 商机信息Service
* @author: ls
* @Date: 2020-07-14 15:55:36
*/
public interface CommonService {

    JSONObject getProductInfo(Integer id);

    <T> Map<String, Object> buildQryResultMap(List<T> beanList);

    User getUserInfo(Integer userId);

    <T> List<T> getPageList(List<T> voList, Integer pageNum, Integer pageSize);

    void saveCarbon(Integer userId, Integer carbonReduce, Integer type);

    void saveScore(Integer userId, Integer score, Integer type);

    ScoreAccount getScoreAccount(Integer id);

    CarbonAccount getCarbonAccount(Integer id);
}
